package com.siashan.toolkit.api.security.exception;

import com.siashan.toolkit.core.exception.BaseException;
import com.siashan.toolkit.core.wrapper.ResultCode;

/**
 * 自定义加解密异常
 *
 * @author siashan
 * @since V1.0.1
 */
public class RestCryptoException extends BaseException {
    private static final long serialVersionUID = 1L;


    public RestCryptoException(String message) {
        super(message);
        this.setCode(ResultCode.BAD_REQUEST.getCode());
    }

    public RestCryptoException(String message, Integer code) {
        super(message, code);
    }

    public RestCryptoException(String message, Throwable e) {
        super(message, e);
    }
}
